import service from '@/request/index';

// 注册
export const register = (data) => {
    return service({
        url: '/register',
        method: 'post',
        data: JSON.stringify(data)
    })
}

// 登录
export const login = (data) => {
    return service({
        url: '/login',
        method: 'post',
        data: JSON.stringify(data)
    })
}

